<%- form_for @componente, :url => componente_form_path do |f| -%>
  <%= f.error_messages %>
  <%= f.hidden_field :conselho %>
  <ul>
    <li>
      <%= f.label :cpf, 'CPF:' %>
      <%= f.text_field :cpf, :alt => :cpf %>
    </li>
    <li>
      <%= f.label :nome, 'Nome:' %>
      <%= f.text_field :nome, :class => :large %>
    </li>
    <li>
      <%= f.label :cargo, 'Cargo:' %>
      <%= f.text_field :cargo, :class => :large %>
    </li>
    <li>
      <h3>Mandato</h3>
    </li>
    <li>
      <%= f.label :mandato_inicio, 'Início:' %>
      <%= f.date_select :mandato_inicio, :include_blank => true,
                        :start_year => Time.now.year,      :end_year => 1900 %>
      <%= f.label :mandato_fim, 'Fim:' %>
      <%= f.date_select :mandato_fim,    :include_blank => true,
                        :start_year => Time.now.year + 10, :end_year => Time.now.year %>
    </li>
    <li>
      <%= f.submit "Salvar" %>
    </li>
  </ul>
<%- end -%>
